<template>
	<view class="informantion_mask" @tap="closeWindow">
		<view class="informantion_content" @tap.stop.prevent>
			<view class="mask-header">
				<!-- <image :src="../../static/images/clear.png" mode="aspectFit" @click="closeWindow"></image> -->
				<image :src="qrcodeImg" show-menu-by-longpress></image>
			</view>
			<view class="informantion-title">
				长按识别二维码，关注公众号
			</view>
		</view>
	</view>
</template>
 
<script>
	export default {
		data() {
			return {
				qrcodeImg: ''
			}
		},
		onLoad({ qrcodeImg }) {
			this.qrcodeImg = qrcodeImg
		},
		onHide() {
			uni.navigateBack({
				animationDuration: 0,
			})
		},
		methods: {
			//点击mask消失，由于是页面实际相当于返回
			closeWindow() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>
 
<style lang="scss">
	page {
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.4);
	}
 
	.informantion_mask {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
	}
 
	.informantion_content {
		width: 600rpx;
		height: 800rpx;
		overflow: hidden;
		border-radius: 10rpx;
		background-color: white;
		display: flex;
		flex-direction: column;
		gap: 40rpx;
	}
 
	.mask-header {
		width: 600rpx;
		position: relative;
		padding: 20rpx;
		box-sizing: border-box;
		image {
			width: 560rpx;
			height: 560rpx;
		}
	}
	
	.informantion-title {
		text-align: center;
		padding: 0 40rpx;
		p {
			font-size: 35rpx;
			font-weight: bold;
			line-height: 80rpx;
		}
		span {
			color: #6C6C6C;
		}
	}
 
	.informantion-btn {
		height: 93rpx;
		width: 80%;
		margin: 0 auto;
	}
</style>